﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace K2.Listener.Entity
{
    /// <summary>
    /// Worklist数据监听对象，带了生成时间，以便同步服务中进行判断执行顺序
    /// </summary>
    public class WorklistListenerEntity
    {
        public WorklistListenerEntity()
        {
            CreateTime = DateTime.Now;
        }

        /// <summary>
        /// 流程实例ID
        /// </summary>
        public int ProcInstID { get; set; }

        /// <summary>
        /// 节点审批人
        /// </summary>
        public string Destination { get; set; }

        /// <summary>
        /// 触发类型1:Delete，2:Insert,3:Update
        /// </summary>
        public int ChangeType { get; set; }

        /// <summary>
        /// 数据变化时时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
